import request from '@/utils/request'
// 分页查询国家基础信息列表
export const getQueryList = function (params) {
  return request({
    url: '/system/country/info/listPage',
    method: 'post',
    data: params,
  })
}
// 新增国家基础信息
export const addCountry = function (data) {
  return request({
    url: '/system/country/info',
    method: 'post',
    data,
  })
}
// 修改国家基础信息
export const editCountry = function (data) {
  return request({
    url: '/system/country/info',
    method: 'put',
    data,
  })
}

export const delCountry = function (ids) {
  return request({
    url: `/system/country/info/${ ids }`,
    method: 'delete',
  })
}

export const getCountryDetail = function (id) {
  return request({
    url: `/system/country/info/${ id }`,
    method: 'get',
  })
}